package com.vhans.db.model.dto.group;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Value;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 群组DTO
 *
 * @author vhans
 * @date 2023-05-21
 */
@Data
@ApiModel(description = "群组DTO")
public class GroupDTO {

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 群号
     */
    @ApiModelProperty(value = "群号")
    private String groupNumber;

    /**
     * 群名称
     */
    @NotBlank(message = "群名称不能为空")
    @ApiModelProperty(value = "群名称")
    private String name;

    /**
     * 群图片
     */
    @NotBlank(message = "群图片不能为空")
    @ApiModelProperty(value = "群图片")
    private String img;

    /**
     * 群描述
     */
    @ApiModelProperty(value = "群描述")
    private String remark;

    /**
     * 群组ids
     */
    @ApiModelProperty(value = "群组ids")
    private List<Integer> groupIds;

}
